# 算数运算符
# a = 2
# b = 4
# print(a + b)
# print(a - b)
# print(a * b)
# print(a / b)
# print(a % b)    # 取余
# print(a // b)   # 取整
# print(a ** b)   # 幂等

# 比较运算  肯定会产生一个bool
# a = 2
# b = 1
# print(a > b)  # True
# print(a < b)  # False
# print(a == b)   # 比较的是两边的值是否相等
# print(a != b)
# print(a >= b)
# print(a <= b)

# 赋值运算符
# a = 1
# b = 2
# a = b
# print(a)
# a += b  # --> a = a + b
# print(a)
# a -= b
# print(a)
# a *= b
# print(a)
# a /= b
# print(a)
# a %= b
# print(a)
# a //= b
# print(a)
# a **= b
# print(a)

# 逻辑运算符
# and or not  与或非
# print(10 > 2 and 20 < 2)
# print(10 > 2 or 20 < 2)
# print(not 10 > 2)


# 身份运算
# is
# a = None
# print(a is None)    # 判断的是内存地址是否相同
# print(a is not True)
#
# i = 1
# p = 1
# print(i is p)